package com.heima.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("qc_check_item")
public class QcCheckItem {

    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("check_type_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkTypeId;

    @TableField("method")
    private String method;

    @TableField("standard_value")
    private Integer standardValue;



    @TableField("unit")
    private String unit;

    @TableField("max")
    private Integer max;

    @TableField("min")
    private Integer min;

    @TableField("discription")
    private String description;

    @TableField("create_by")
    private String createBy;

    @TableField(value = "create_time" ,fill = FieldFill.INSERT )
    private LocalDateTime createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}